package cn.webloon.page.article.dao.impl;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import cn.webloon.page.article.bean.Article;
import cn.webloon.page.article.dao.ArticleDao;

@Component
@SuppressWarnings("unchecked")
public class ArticleDaoImpl extends SqlSessionDaoSupport implements ArticleDao {

	@Override
	public List<Article> getAllArticles() {
		List<Article> list = getSqlSession().selectList("config.sqlmap.test.query");
		return (List<Article>) list;
	}

	@Override
	public Article getlArticleById(String articleId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Article updateArticle(Article article) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteArticleById(String articleId) {
		// TODO Auto-generated method stub

	}

}
